<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:600px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">Fechar</span>Detalhes do Pedido</h3>
	<div style="overflow-x:hidden;padding:10px;" id="dialog-order-id" oid="<?php echo $order['id']; ?>">
	<table width="96%" align="center" class="coupons-table">
		<tr><td width="80"><b>Usuário:</b></td><td><?php echo $user['username']; ?> / <?php echo $user['email']; ?></td></tr>
		<tr><td><b>Oferta:</b></td><td><?php echo $team['title']; ?></td></tr>
		<tr><td><b>Quantidade:</b></td><td><?php echo $order['quantity']; ?></td></tr>
	<?php if($order['condbuy']){?>
		<tr><td><b>Opções:</b></td><td><?php echo $order['condbuy']; ?></td></tr>
	<?php }?>
		<tr><td><b>Status:</b></td><td><?php echo $paystate[$order['state']]; ?></td></tr>
		<tr><td><b>Pedido N.:</b></td><td><?php echo $order['pay_id']; ?></td></tr>
		<tr><td><b>Pagamento:</b></td><td>
		<?php if($order['credit']){?>Pago <?php echo $currency; ?> <b><?php echo moneyit3($order['credit']); ?></b> com saldo<?php }?> &nbsp;
		<?php if($order['service']!='credit'&&$order['money']){?>, Pago <?php echo $currency; ?> <b><?php echo moneyit3($order['money']); ?></b> com <?php echo $payservice[$order['service']]; ?><?php }?>
		<?php if($order['card_id']){?>&nbsp;Pago: <?php echo $currency; ?> <b><?php echo moneyit3($order['card']); ?></b> com Pontos<?php }?></td></tr>
		<tr><td><b>Data:</b></td><td><?php echo date('d-m-Y H:i', $order['create_time']); ?> / <?php echo date('d-m-Y H:i', $order['pay_time']); ?></td></tr>

	<?php if($user['mobile']){?>
		<tr><td><b>Celular?</b></td><td><?php echo $user['mobile']; ?></td></tr>
	<?php }?>

	<?php if($user['qq']){?>
		<tr><td><b>QQ?</b></td><td><?php echo $user['qq']; ?></td></tr>
	<?php }?>

	<?php if($user['msn']){?>
		<tr><td><b>MSN?</b></td><td><?php echo $user['msn']; ?></td></tr>
	<?php }?>
	<?php if($order['remark']){?>
		<tr><td width="80"><b>Notas do comprador?</b></td><td><?php echo htmlspecialchars($order['remark']); ?></td></tr>
	<?php }?>

	<?php if($team['delivery']=='express'){?>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td width="80"><b>Receptor:</b></td><td><?php echo $order['realname']; ?></td></tr>
		<tr><td><b>Número do celular:</b></td><td><?php echo $order['mobile']; ?></td></tr>
		<tr><td><b>Endereço:</b></td><td><?php echo $order['address']; ?></td></tr>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Informações de entrega:</b></td><td><select name="express_id" id="order-dialog-select-id"><?php echo Utility::Option($option_express, $order['express_id'], ' Por favor selecione a entrega'); ?></select>&nbsp;<input type="text" name="in" id="order-dialog-input-id" value="<?php echo $order['express_no']; ?>" style="width:150px;" maxLength="32" />&nbsp;&nbsp;<input type="submit" value="Enviar" onclick="return X.manage.orderexpress();"/></td></tr>
	<?php }?>

	<?php if($order['state']=='pay'){?>
		<tr><th colspan="2"><hr/></th></td>
		<tr><td><b>Politica de reembolso:</b></td><td><select name="refund" id="order-dialog-refund-id"><?php echo Utility::Option($option_refund, '', ' por favor selecione a forma de reembolso'); ?></select>&nbsp;<input type="submit" value="Sim" onclick="return X.manage.orderrefund();"/></td></tr>
	<?php }?>

	</table>
	</div>
</div>
